cmake_minimum_required(VERSION 3.10)

project(cpp-charconv-test CXX)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR})

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
    message("GNU compiler")
    # add_compile_options(-Wall -Werror)
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/../src CHARCONV_SOURCES)

add_executable(test_to_chars ${CHARCONV_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/test_to_chars.cpp)